package com.wu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Teacher {
    //一对多
//    private Integer id;
//    private String name;


    //多对一
         private int id;
     private String name;
     //一个老师多个学生
             private List<Student> students;
}
